package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 特殊分数
 */
@Data
@DbTable(tableName = "t_special_score")
public class SpecialScore extends BaseEntity {
    /**
     * 分数值
     */
    @DbTableField(columnName = "c_score", dbType = DbTypeEnum.INTEGER)
    public Integer score = 0;

    /**
     * 标段ID
     */
    @DbTableField(columnName = "c_section_id", dbType = DbTypeEnum.INTEGER)
    public Integer sectionId;

    /**
     * 标段名字
     */
    @DbTableField(columnName = "c_section_name", dbType = DbTypeEnum.VARCHAR)
    public String sectionName;

    /**
     * 企业ID
     */
    @DbTableField(columnName = "c_company_id", dbType = DbTypeEnum.INTEGER)
    public Integer companyId;

    /**
     * 企业名字
     */
    @DbTableField(columnName = "c_company_name", dbType = DbTypeEnum.VARCHAR)
    public String companyName;

    /**
     * 考评时间
     */
    @DbTableField(columnName = "c_evaluation_time", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format = "yyyy-MM-dd")
    public LocalDateTime evaluationTime;

    /**
     * 考评详情
     */
    @DbTableField(columnName = "c_evaluation_content", dbType = DbTypeEnum.VARCHAR)
    public String evaluationContent;

    /**
     * 考评人ID
     */
    @DbTableField(columnName = "c_evaluation_user_id", dbType = DbTypeEnum.INTEGER)
    public Integer evaluationUserId;

    /**
     * 考评人名字
     */
    @DbTableField(columnName = "c_evaluation_user_name", dbType = DbTypeEnum.VARCHAR)
    public String evaluationUserName;


}
